package com.gy.smart;

import android.content.Intent;
import android.os.Handler;
import android.os.Message;

import com.gy.smart.base.BaseActivity;
import com.gy.smart.util.AnimUtil;

/**
 * 作者：gy on 17/1/5
 * 说明：
 */
public class LoadingActivity extends BaseActivity {

    @Override
    protected void initView() {
        setContentView(R.layout.activity_loading);
        handler.sendEmptyMessageDelayed(0,1000);
    }

    @Override
    protected void initData() {

    }

    private Handler handler = new Handler(){
        @Override
        public void handleMessage(Message msg) {
            super.handleMessage(msg);
            Intent intent = new Intent(LoadingActivity.this,MainActivity.class);
            startActivity(intent);
            AnimUtil.pushLeftInAndOut(LoadingActivity.this);
            finish();
        }
    };
}
